package edu.simis.client;

import com.google.gwt.user.client.ui.Composite;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.FormItem;
import com.smartgwt.client.widgets.form.fields.TextItem;
import com.smartgwt.client.widgets.form.fields.TextAreaItem;
import com.smartgwt.client.widgets.layout.FlowLayout;
import com.smartgwt.client.widgets.form.fields.AutoFitTextAreaItem;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.form.fields.CanvasItem;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.form.fields.SubmitItem;
import com.smartgwt.client.widgets.form.fields.ButtonItem;
import com.smartgwt.client.types.Alignment;

public class inscribir_materia extends Composite {

	
	public inscribir_materia() {
		
		FlowLayout flowLayout = new FlowLayout();
		flowLayout.setSize("549px", "465px");
		
		FlowLayout flowLayout_1 = new FlowLayout();
		flowLayout_1.setSize("453px", "66px");
		flowLayout.addTile(flowLayout_1);
		
		FlowLayout flowLayout_2 = new FlowLayout();
		flowLayout_2.setSize("531px", "383px");
		
		DynamicForm dynamicForm = new DynamicForm();
		dynamicForm.setGroupTitle("Adicionar materia");
		dynamicForm.setSize("254px", "220px");
		ButtonItem buttonItem = new ButtonItem("newButtonItem_5", "Guardar Materia");
		buttonItem.setAlign(Alignment.CENTER);
		dynamicForm.setFields(new FormItem[] { new TextItem("codigo", "*Codigo"), new TextItem("nombre", "*Nombre"), new TextAreaItem("newTextAreaItem_3", "*Descripci\u00F3n"), new TextItem("newTextItem_4", "*Numero Creditos"), buttonItem});
		flowLayout_2.addTile(dynamicForm);
		
		FlowLayout flowLayout_3 = new FlowLayout();
		flowLayout_3.setSize("252px", "317px");
		
		Label lblNewLabel = new Label("Ingrese el codigo de la materia.");
		lblNewLabel.setSize("155px", "16px");
		flowLayout_3.addTile(lblNewLabel);
		
		Label lblNewLabel_1 = new Label("Ingrese el nombre de la materia.");
		lblNewLabel_1.setSize("158px", "13px");
		flowLayout_3.addTile(lblNewLabel_1);
		
		Label lblIngreseLaDescripcion = new Label("Ingrese la descripcion de la materia.");
		lblIngreseLaDescripcion.setWidth("188px");
		flowLayout_3.addTile(lblIngreseLaDescripcion);
		
		Label lblNewLabel_2 = new Label("Ingrese el numero de creditos de la materia.");
		lblNewLabel_2.setSize("228px", "18px");
		flowLayout_3.addTile(lblNewLabel_2);
		flowLayout_2.addTile(flowLayout_3);
		flowLayout.addTile(flowLayout_2);
		initWidget(flowLayout);
		
	}

}
